package com.yznote.cloudesk.user.mapper;

import com.yznote.cloudesk.common.pojo.Bar;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
@Component
public interface BarMapper {
    List<Bar> getBarList(long userId);
    int getMaxBar(long userId);
    int updataBar(long userId, int oldIndex,int newIndex,LocalDateTime updateTime);
    int insetBar(long userId, long fileId, int index, LocalDateTime createTime);
    int removeBar(long userId, int index);
}
